package guo.pac;

public class Producer extends Thread{
	private int num;
	private Storage storage;
	private storsge s;
	
	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public Storage getStorage() {
		return storage;
	}

	public void setStorage(Storage storage) {
		this.storage = storage;
	}

	public Producer(int num, Storage storage) {
		super();
		this.num = num;
		this.storage = storage;
	}

	public Producer(int num, storsge s) {
		super();
		this.num = num;
		this.s = s;
	}

	//public void run() {
	//	storage.produce(num);
	//}
	public void run() {
		s.produce(num);
	}

}
